﻿package Game.LogicSystem.Actions {
	import Game.LogicSystem.ActionManager;
	import Game.LogicSystem.Objects.BatClass;
	import Game.Utils.T;
	public class BatActionsCollection {
		
		// Constants:
		// Public Properties:
		// Private Properties:
		private var m_ActionManager:ActionManager;
		// Initialization:
		public function BatActionsCollection(_Manager:ActionManager) {
			m_ActionManager = _Manager;
		 }
		public function CreateUnit(_params:Array):void{
			var currentBat:BatClass = _params[0];
			var creable:Array = new Array();
			creable= currentBat.getCreableList();
			if(creable != null && creable.length>0){
				m_ActionManager.m_DisplayManager.callInterface("openCreationPanel",creable);
				
			}else{
				T.Trace("Error, no creation Values",99,"BatActionCollec/CreateUnit");
			}
			m_ActionManager.m_DisplayManager.callInterface("closeObjectPanel");
		}
		// Public Methods:
		// Protected Methods:
	}
	
}